hex_motion.cpp